export default class Vector2 {
    constructor(x = 0, y = 0) {
        this.x = 0;
        this.y = 0;
        this.x = x;
        this.y = y;
    }
    compare(v) {
        return Math.floor(this.x) === Math.floor(v.x) && Math.floor(this.y) === Math.floor(v.y);
    }
    offset(x, y) {
        return new Vector2(this.x + x, this.y + y);
    }
}
